package br.com.edumobi.fragments;

import android.app.Fragment;
import android.os.Bundle;

import java.util.Date;

import br.com.edumobi.dados.modelos.Aluno;

public abstract class GenericoFragment extends Fragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRetainInstance(true);
    }

    public abstract void showComponents();

    public abstract void hideComponents();

    public interface AcoesGenericoFragment {
        boolean isConnected();
        void onFinish();
        void onMakeText(int idString);
        void onMakeText(String string);
        void onSpeak(int idString);
        void onSpeakAdd(String string);
        void onSpeakAdd(int idString);
        void onSpeakAndMakeText(int string);
        boolean isSpeaking();
        Aluno getPreferencesAluno();
        void putPreferencesAluno(Aluno aluno);
        void putPreferencesDataAtualizacao(Date dataDeAtualizacao);
        Date getPreferencesDataAtualizacao();
        void putPreferencesUsuAssistenteVirtual(boolean usarAssistente);
        boolean getPreferencesUsuAssistenteVirtual();
    }
}
